import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Blog } from 'src/blog/blog.entity';
import { BlogModule } from 'src/blog/blog.module';
import { BlogService } from 'src/blog/blog.service';
import { Tag } from 'src/tag/tag.entity';
import { TagModule } from 'src/tag/tag.module';
import { TagService } from 'src/tag/tag.service';
import { Type } from 'src/type/type.entity';
import { TypeModule } from 'src/type/type.module';
import { TypeService } from 'src/type/type.service';
import { User } from 'src/user/user.entity';
import { UserModule } from 'src/user/user.module';
import { UserService } from 'src/user/user.service';
import { CommentController } from './comment.controller';
import { Comment } from './comment.entity';
import { CommentService } from './comment.service';

@Module({
  imports: [TypeOrmModule.forFeature([Comment, Blog, Type, Tag, User]), BlogModule, TypeModule, TagModule, UserModule],
  controllers: [CommentController],
  providers: [CommentService, BlogService, TypeService, TagService, UserService]
})
export class CommentModule { }
